using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WaterQualityReportSystem
{
    public partial class InputManualDialog : Form
    {
        public String InputData { get; set; }
        public Boolean AppendData { get; set; }

        public InputManualDialog()
        {
            InitializeComponent();
        }

        private void btConfirm_Click(object sender, EventArgs e)
        {
            if (txtData.Text.Trim().Equals(""))
            {
                MessageBox.Show(this, "请先输入数据！");
                return;
            }

            InputData = txtData.Text.Trim();
            AppendData = chkAppendData.Checked;
            this.DialogResult = DialogResult.OK;
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
